package com.photoeditor.demo.util;

import com.common.base.log.RLog;
import com.photoeditor.BuildConfig;

public class FLogUtils {
    //使用配置开关，当release的时候自动关闭
//    private static boolean debug = true;
    private static boolean debug = BuildConfig.DEBUG;

    public static void i(String tag, String msg) {
        if (debug) {
            RLog.i(tag, "->> " + msg);
        }
    }

    public static void e(String tag, String msg) {
        if (debug) {
            RLog.e(tag, "->> " + msg);
        }
    }

    public static void e(String tag, Throwable throwable) {
        if (debug) {
            RLog.w(tag, "->> error ", throwable);
        }
    }

}
